class ApiResponse {
  int? code;
  dynamic data;
  String? message;
  int? sysTime;
  int? total;
  String? traceId;

  ApiResponse(
      {this.code,
      this.data,
      this.message,
      this.sysTime,
      this.total,
      this.traceId});

  ApiResponse.fromJson(Map<String, dynamic> json) {
    if (json["code"] is int) {
      code = json["code"];
    }
    data = json["data"];
    if (json["message"] is String) {
      message = json["message"];
    }
    if (json["sysTime"] is int) {
      sysTime = json["sysTime"];
    }
    if (json["total"] is int) {
      total = json["total"];
    }
    if (json["traceId"] is String) {
      traceId = json["traceId"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["code"] = code;
    _data["data"] = data;
    _data["message"] = message;
    _data["sysTime"] = sysTime;
    _data["total"] = total;
    _data["traceId"] = traceId;
    return _data;
  }
}
